package net.dgg.dggcloud.service.jrcrm.common.webscoket.redis.dao;

import org.springframework.web.socket.WebSocketSession;

import java.io.Serializable;

public interface WSRedisDAO {

    public abstract void sendMessage(String channel, Serializable message);

    /**
     * 添加在线用户
     * @param session
     */
    public void sendHashMapByOnlineUser(WebSocketSession session);

    /**
     * 删除在线用户
     * @param key
     */
    public void delHashMapByOnlineUser(String... key);
  
} 